package com.ms.demo.mapper;

import com.ms.demo.entity.Emp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmpDataMapper {

    //单一操作
    public int addNewEmpOne(Emp emp);

    public void deleteOneEmp(@Param("id") String id);

    public int updateEmpInfo(Emp emp);

    public Emp selectEmpOneById(@Param("id") Integer id);


    //批量操作
    public void batchAddNewEmp(@Param("empList") List<Emp> empList);

    public void batchDeleteEmpById(@Param("ids") Integer[] ids);

    public void batchUpdateEmp(@Param("empList") List<Emp> empList);


    Emp getEmpAndDeptById1(@Param("id") String id);

    Emp getEmpAndDeptById2(@Param("id") String id);

    Emp getEmpAndDeptById3(@Param("id") String id);
}
